package tech.jdbc.entity;

/**
 * Create with Intellij IDEA
 *
 * @Author Q
 * @date 2021/11/25/15:47
 */
public class Course {
   private Integer id;
   private String CName;
   private Integer teacherId;

    public Course() {
    }

    public Course(Integer id, String CName, Integer teacherId) {
        this.id = id;
        this.CName = CName;
        this.teacherId = teacherId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCName() {
        return CName;
    }

    public void setCName(String CName) {
        this.CName = CName;
    }

    public Integer getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(Integer teacherId) {
        this.teacherId = teacherId;
    }

    @Override
    public String toString() {
        return "Course{" +
                "id=" + id +
                ", CName='" + CName + '\'' +
                ", teacherId=" + teacherId +
                '}';
    }
}
